package com.imelite.qyh.service;

import com.imelite.qyh.dao.YycpbgMapper;
import com.imelite.qyh.model.Yycpbg;
import com.imelite.qyh.util.BaseStringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class YycpbgService {
    @Autowired
    private YycpbgMapper yycpbgMapper;
    public void insertSelective(Yycpbg record){
        record.setId(BaseStringUtil.getUUID());
        record.setCreated(new Date());
        yycpbgMapper.insertSelective(record);
    }

    public Yycpbg selectBYyxxid(String yyxxid){
        return yycpbgMapper.selectBYyxxid(yyxxid);
    }

    public void updateByPrimaryKeySelective(Yycpbg record){
        yycpbgMapper.updateByPrimaryKeySelective(record);
    }
}
